home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>59</cardCount>
- <cardID>3616</cardID>
- <listID>20635</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on resume
- send openStack
- end resume
-
- on openStack
- global positionColumn
- global positionRow
- global soundOn
- global twoObjects
- global action
- global object
- global map
- global immobile
- hide message box
- show menuBar
- put "-- Immobile" into immobile
- send createMenu
- put item 1 of line 1 of card field "Last Position" ¬
- of card "Constants" into positionRow
- put item 2 of line 1 of card field "Last Position" ¬
- of card "Constants" into positionColumn
- put card field "Map" of card "Constants" into map
- put "Yes" into soundOn
- put empty into twoObjects
- put empty into action
- put empty into object
- send goToCard
- end openStack
-
- on createMenu
- create menu "Game"
- put "New Game,Sound Off,-,Quit" into menu "Game"¬
- with menuMsgs "newGame,soundOff,,quitGame"
- put "About " & the short name of this stack & "..." into menuItem 1 of menu 1 with menuMsgs¬
- "AboutGame"
- end createMenu
-
- on newGame
- global twoObjects
- put "Reset all the variables here"
- beep 1
- wait 1 second
- hide msg box
- put empty into twoObjects
- end newGame
-
- on soundOff
- global soundOn
- global twoObjects
- put "Sound On" into menuItem 2 of menu "Game" with menuMsgs¬
- "soundOn"
- put "No" into soundOn
- put empty into twoObjects
- end soundOff
-
- on soundOn
- global soundOn
- global twoObjects
- put "Sound Off" into menuItem 2 of menu "Game" with menuMsgs¬
- "soundOff"
- put "Yes" into soundOn
- put empty into twoObjects
- end soundOn
-
- on quitGame
- global twoObjects
- put empty into twoObjects
- go home
- end quitGame
-
- on aboutGame
- answer "This is Cindy's game!"
- end aboutGame
-
- on closeStack
- global positionColumn
- global positionRow
- put positionRow into item 1 of line 1 of card field ¬
- "Last Position" of card "Constants"
- put positionColumn into item 2 of line 1 of card field¬
- "Last Position" of card "Constants"
- put empty into positionColumn
- put empty into positionRow
- reset menubar
- end closeStack
-
- on openCard
- global positionColumn
- global positionRow
- if positionColumn is empty then
- openStack
- else
- lock screen
- set cursor to 4
- showButtons
- showDescription
- end if
- end openCard
-
- on showButtons
- global positionRow
- global positionColumn
- global map
- if item positionColumn of line (positionRow - 1) of map¬
- contains "*" then
- hide bg button "Forward"
- else
- show bg button "Forward"
- end if
- if item positionColumn of line (positionRow + 1) of map¬
- contains "*" then
- hide bg button "Backward"
- else
- show bg button "Backward"
- end if
- if item (positionColumn - 1) of line positionRow of map¬
- contains "*" then
- hide bg button "Left"
- else
- show bg button "Left"
- end if
- if item (positionColumn + 1) of line positionRow of map¬
- contains "*" then
- hide bg button "Right"
- else
- show bg button "Right"
- end if
- if bg field "Card Name" is empty then
- put the short name of this card into bg field "Card Name"
- end if
- end showButtons
-
- on showDescription
- lock screen
- put empty into bg field "Text Field"
- if bg field "Room Description" is not empty then
- put bg field "Room Description" into bg field "Text Field"
- else
- doPut the short name of this card & "."
- end if
- end showDescription
-
- on showObjects
- put "You see:" after bg field "Text Field"
- repeat with X = 1 to the number of card fields
- if the visible of card field X is true then
- doPut " " & the short name of card field X & ","
- end if
- end repeat
- get last char of last word of last line of bg field "Text Field"
- if it is "," then
- put "." into last char of last word of last line of ¬
- bg field "Text Field"
- else if it is ":" then
- doPut "nothing."
- end if
- end showObjects
-
- on goToCard
- global map
- global positionColumn
- global positionRow
- global twoObjects
- global nextCard
- set cursor to watch
- put item positionColumn of line positionRow of ¬
- map into nextCard
- strip " "
- strip quote
- go to card nextCard
- put empty into twoObjects
- end goToCard
-
- on strip stripChar
- global nextCard
- repeat forever
- put "no" into stripAgain
- if first char of nextCard is stripChar then
- put empty into first char of nextCard
- put "yes" into stripAgain
- end if
- if last char of nextCard is stripChar then
- put empty into last char of nextCard
- put "yes" into stripAgain
- end if
- if stripAgain is "no" then
- exit repeat
- end if
- end repeat
- end strip
-
- on doGet
- global object
- if object is in bg field "inventory" then
- doPut "You already have " & object & "!"
- exit doGet
- else
- if the script of cd fld object contains immobile then
- doPut "You can't get " & object & "!"
- exit doGet
- else
- doPut "Rearranging pack, just a moment..."
- lock screen
- set cursor to 4
- select card field object
- domenu "Clear Field"
- put object & return after bg field "Inventory" of card "Inventory"
- end if
- choose browse tool
- doPut "You now have " & object & "."
- end if
- end doGet
-
- on doDrop
- global object
- global immobile
- if object is not in bg field "inventory" then
- doPut "You don't have " & object & "!"
- else
- doPut "Rearranging pack, just a moment..."
- lock screen
- set cursor to 4
- push card
- go to card "Inventory"
- select card field object
- domenu "Copy Field"
- pop card
- domenu "Paste Field"
- put card field object of card "Inventory" into card field object
- --Empty out the inventory here
- put length(object) into objectLength
- put offset(return & object,bg field "Inventory") + 1 into firstChar
- put firstChar + objectLength into lastChar
- put empty into char firstChar to lastChar of bg field "Inventory"
- choose browse tool
- doPut object & ": dropped."
- end if
- end doDrop
-
- on doLook
- doPut "You can't see any more detail."
- end doLook
-
- on doSearch
- doPut "You find nothing."
- end doSearch
-
- on doOpen
- global object
- doPut "You can't open " & object & "!"
- end doOpen
-
- on doClose
- global object
- doPut "You can't close " & object & "!"
- end doClose
-
- on doUse
- global object
- global recipient
- doPut "You can't use " & object & " on " & recipient & "."
- end doUse
-
- on doWait
- global object
- doPut "Waiting..."
- repeat 10 times
- set cursor to busy
- end repeat
- end doWait
-
- on doTurnOn
- global object
- doPut "You can't turn on " & object & "!"
- end doTurnOn
-
- on doTurnOff
- global object
- doPut "You can't turn off " & object & "!"
- end doTurnOff
-
- on doEnter
- global object
- doPut "You can't enter " & object & "!"
- end doEnter
-
- on doExit
- global object
- doPut "You can't exit " & object & "!"
- end doExit
-
- on doPush
- global object
- doPut "You can't push " & object & "!"
- end doPush
-
- on doPull
- global object
- doPut "You can't pull " & object & "!"
- end doPull
-
- on doEat
- global object
- doPut "You can't eat " & object & "!"
- end doEat
-
- on doRead
- global object
- doPut "You can't make out any writing on " & object & "."
- end doRead
-
- on doSay
- global object
- doPut "Don't bother - " & object & " isn't listening."
- end doSay
-
- on doGive
- global object
- global recipient
- doPut "You can't give " & object & " to the " & recipient & "."
- end doGive
-
- on startHelp
- global object
- answer "How much help do you want?" with¬
- "A little" or "A lot" or "Tell Me All!"
- put "card field " & quote & object & quote into whereToSend
- if object is in bg field "inventory" then
- put " of card Inventory" after whereToSend
- end if
- if it is "A little" then
- send "doHelp aLittle" to whereToSend
- else if it is "A lot" then
- send "doHelp aLot" to whereToSend
- else
- send "doHelp aDummy" to whereToSend
- end if
- end startHelp
-
- on doHelp help
- if help is "aLittle" then
- doPut "Sorry, no hints available."
- beep 1
- else if help is "aLot" then
- doPut "No hints available right now!"
- beep 2
- else
- doPut "You're on your own here, Buster!"
- beep 3
- end if
- end doHelp
-
- on idle
- global action
- global object
- global recipient
- global twoObjects
- global whereToSend
- if twoObjects is empty then
- if ((action is not empty) and (object is not empty)) then
- set cursor to watch
- put "card field " & quote & object & quote into whereToSend
- if (item 1 of object) is in bg field "inventory" then
- put " of card Inventory" after whereToSend
- end if
- if action is "doDrop" then
- doDrop object
- else if action is "doGet" then
- doGet object
- else
- set cursor to 4
- send action to whereToSend
- end if
- put empty into action
- put empty into object
- end if
- else
- if ((action is not empty) and (object is not empty) and¬
- (recipient is not empty)) then
- set cursor to watch
- put "card field " & quote & recipient & quote into whereToSend
- if (item 1 of recipient) is in bg field "inventory" then
- put " of card Inventory" after whereToSend
- end if
- send (action & quote & object & quote) to whereToSend
- put empty into action
- put empty into object
- put empty into recipient
- end if
- end if
- end idle
-
- on doPut msgString
- put msgString & " " after background field "text field"
- set the scroll of bg field "text field" to 1000
- end doPut
-
- on describeTheRoom
- doPut "You can't see any more detail about that."
- end describeTheRoom
-
- on dragMe
- set loc of the target to the mouseLoc
- end dragMe
-
- on arrowKey direction
- if direction is "left" then click at loc of bg button "Left"
- else if direction is "right" then click at loc of bg button "Right"
- else if direction is "up" then click at loc of bg button "Forward"
- else if direction is "down" then click at loc of bg button "Backward"
- end arrowKey
-
- on doMenu item
- if item is "Find..." then
- show bg field "Scene List"
- else
- pass doMenu
- end if
- end doMenu
-
- </script>
- <background id="2761" file="background_2761.xml" name="" />
- <card id="3616" file="card_3616.xml" marked="false" name="Start Screen" owner="2761" />
- <card id="4019" file="card_4019.xml" marked="false" name="Constants" owner="2761" />
- <card id="6088" file="card_6088.xml" marked="false" name="Inventory" owner="2761" />
- <card id="2915" file="card_2915.xml" marked="false" name="Fire Hydrant" owner="2761" />
- <card id="6648" file="card_6648.xml" marked="false" name="Sidewalk 29" owner="2761" />
- <card id="4292" file="card_4292.xml" marked="false" name="Sidewalk 30" owner="2761" />
- <card id="4426" file="card_4426.xml" marked="false" name="Sidewalk 31" owner="2761" />
- <card id="4720" file="card_4720.xml" marked="false" name="Sidewalk 32" owner="2761" />
- <card id="5012" file="card_5012.xml" marked="false" name="Phone Booth" owner="2761" />
- <card id="5283" file="card_5283.xml" marked="false" name="Sidewalk 34" owner="2761" />
- <card id="5471" file="card_5471.xml" marked="false" name="Newspaper Stand" owner="2761" />
- <card id="7305" file="card_7305.xml" marked="false" name="Sidewalk 27" owner="2761" />
- <card id="7628" file="card_7628.xml" marked="false" name="Inside Phone Booth" owner="2761" />
- <card id="7687" file="card_7687.xml" marked="false" name="Sidewalk 2" owner="2761" />
- <card id="8095" file="card_8095.xml" marked="false" name="Sidewalk 26" owner="2761" />
- <card id="8219" file="card_8219.xml" marked="false" name="Bedroom" owner="2761" />
- <card id="8459" file="card_8459.xml" marked="false" name="Bathroom" owner="2761" />
- <card id="8896" file="card_8896.xml" marked="false" name="Sidewalk 3" owner="2761" />
- <card id="9116" file="card_9116.xml" marked="false" name="Sidewalk 25" owner="2761" />
- <card id="9469" file="card_9469.xml" marked="false" name="Front Yard" owner="2761" />
- <card id="9586" file="card_9586.xml" marked="false" name="Living Room" owner="2761" />
- <card id="9738" file="card_9738.xml" marked="false" name="Dining Room" owner="2761" />
- <card id="10147" file="card_10147.xml" marked="false" name="Jail Cell" owner="2761" />
- <card id="10453" file="card_10453.xml" marked="false" name="Sidewalk 4" owner="2761" />
- <card id="10604" file="card_10604.xml" marked="false" name="Sidewalk 24" owner="2761" />
- <card id="10898" file="card_10898.xml" marked="false" name="Music Room" owner="2761" />
- <card id="11086" file="card_11086.xml" marked="false" name="Kitchen" owner="2761" />
- <card id="11478" file="card_11478.xml" marked="false" name="Handwriting Analysis" owner="2761" />
- <card id="11707" file="card_11707.xml" marked="false" name="Sergeant's Desk" owner="2761" />
- <card id="11782" file="card_11782.xml" marked="false" name="Sidewalk 5" owner="2761" />
- <card id="12247" file="card_12247.xml" marked="false" name="Sidewalk 23" owner="2761" />
- <card id="12341" file="card_12341.xml" marked="false" name="Storage Room" owner="2761" />
- <card id="12545" file="card_12545.xml" marked="false" name="Bedroom" owner="2761" />
- <card id="12989" file="card_12989.xml" marked="false" name="Sidewalk 6" owner="2761" />
- <card id="13159" file="card_13159.xml" marked="false" name="Sidewalk 22" owner="2761" />
- <card id="13498" file="card_13498.xml" marked="false" name="Inside Theater" owner="2761" />
- <card id="13687" file="card_13687.xml" marked="false" name="Ticket Office" owner="2761" />
- <card id="14028" file="card_14028.xml" marked="false" name="Bijou" owner="2761" />
- <card id="14194" file="card_14194.xml" marked="false" name="Sidewalk 21" owner="2761" />
- <card id="14434" file="card_14434.xml" marked="false" name="Customers 2" owner="2761" />
- <card id="14640" file="card_14640.xml" marked="false" name="Sidewalk 8" owner="2761" />
- <card id="15081" file="card_15081.xml" marked="false" name="Amelias" owner="2761" />
- <card id="15234" file="card_15234.xml" marked="false" name="Maitre'D 1" owner="2761" />
- <card id="15456" file="card_15456.xml" marked="false" name="Customers 1" owner="2761" />
- <card id="15634" file="card_15634.xml" marked="false" name="Customers 4" owner="2761" />
- <card id="15921" file="card_15921.xml" marked="false" name="Customers 3" owner="2761" />
- <card id="16148" file="card_16148.xml" marked="false" name="Sidewalk 9" owner="2761" />
- <card id="16426" file="card_16426.xml" marked="false" name="Sidewalk 19" owner="2761" />
- <card id="16834" file="card_16834.xml" marked="false" name="Maitre'D 2" owner="2761" />
- <card id="17074" file="card_17074.xml" marked="false" name="Sidewalk 10" owner="2761" />
- <card id="17310" file="card_17310.xml" marked="false" name="Sidewalk 18" owner="2761" />
- <card id="17426" file="card_17426.xml" marked="false" name="Sidewalk 17" owner="2761" />
- <card id="17790" file="card_17790.xml" marked="false" name="Sidewalk 16" owner="2761" />
- <card id="18040" file="card_18040.xml" marked="false" name="Sidewalk 15" owner="2761" />
- <card id="18336" file="card_18336.xml" marked="false" name="Sidewalk 14" owner="2761" />
- <card id="18641" file="card_18641.xml" marked="false" name="Ebb Tide" owner="2761" />
- <card id="18876" file="card_18876.xml" marked="false" name="Sidewalk 12" owner="2761" />
- <card id="19181" file="card_19181.xml" marked="false" name="Bus Stop" owner="2761" />
- <card id="19305" file="card_19305.xml" marked="false" name="On the Bus" owner="2761" />
- </stack>
-